<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%-- <%@ taglib prefix="c" uri="/struts-tags"%> --%>

<script type="text/javascript" src="../js/controller/pr_add.js" ></script>

<form name="form_pr_add" id="form_pr_add" >

<div id="container">
	<div id="content">
		<div class="warpper">
			<table class="from" cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
				<tr>
					<td colspan="5" class="header2" style="border-bottom: 1px #bbb solid;">Request for purchase order / copies
						order/ copies (${param.requestNo})</td>
				</tr>
			</table>
			<table class="from" cellpadding="0" cellspacing="0" border="1" style="width: 100%;">
				<tr>
					<td colspan="7" align="right">
						<table class="from" cellpadding="0" cellspacing="0" border="0" style="width: auto;">
							<tr>
								<td class="header">PR เลขที่ </td>
								<td><input type="text" style="width: 120px;"></td>
								<td class="header">PR วันที่ </td>
								<td><input type="text" style="width: 120px;"></td>
								<td class="header">PO เลขที่ </td>
								<td><input type="text" style="width: 120px;"></td>
								<td class="header">PO เลขที่ </td>
								<td><input type="text" style="width: 120px;"></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td class="header" colspan="4" style="text-align: left; border-bottom: 0px #bbb solid; width: auto;"><u>Subcontractor/
							Vendor No.</u></td>
					<td colspan="3"></td>
				</tr>
				<tr>

					<td class="header" width="200px">ชื่อ บริษัท /ห้างร้าน /บุคคล</td>
<%-- 					<td colspan="3"><s:textfield name="purchaseHeader.name" style="width: 350px;" disabled/></td> --%>
					<td colspan="3"><input type="text" style="width: 350px;" name="purchaseHeaderModel.companyTypeCompanyCode" disabled="disabled"></td>
					<td class="header" width="130px">Term of payment </td>
					<td ><input type="text" style="width: 280px;" name="purchaseHeaderModel.termOfPayment" disabled="disabled"></td>
					<td width="120px;"></td>
				</tr>
				<tr>
					<td class="header" colspan="4" style="text-align: left; border-bottom: 0px #bbb solid; width: auto;"><u>
							ผู้ติดต่อ</u></td>
					<td colspan="3"></td>
				</tr>
				<tr>
					<td class="header">ที่อยู่ </td>
					<td class="header" colspan="6" style="text-align: left;"><input name="purchaseHeaderModel.address"  type="text" style="width: 675px;"
						disabled="disabled"></td>
				</tr>
				<tr>
<!-- 					<td class="header">ที่อยู่ </td> -->
<!-- 					<td><input type="text" style="width: 120px;"></td> -->
					<td class="header">โทรศัพท์ </td>
					<td colspan="2"><input name="purchaseHeaderModel.contractTel"  type="text" style="width: 120px;"></td>
					<td class="header">เบอร์แฟกซ์ </td>
					<td colspan="2"><input name="purchaseHeaderModel.contractFax"  type="text" style="width: 120px;"></td>
					<td></td>
				</tr>

				<tr>
					<td class="header"></td>
					<td class="header" colspan="6" style="text-align: left;"><input name="purchaseHeaderModel.nameContract"  type="text" style="width: 675px;"
						disabled="disabled"></td>
				</tr>
				<tr>
					<td class="header" colspan="4" style="text-align: left; border-bottom: 0px #bbb solid; width: auto;"><u>รายละเอียด
							Project </u></td>
					<td colspan="3"></td>
				</tr>
				<tr>
					<td class="header"></td>
					<td colspan="2" style="text-align: left;"><input name="purchaseHeaderModel.typeCost" id="typecost_1" type="checkbox" value="1"> Cost Project 
<!-- 					</td><td style="text-align: left;"> -->
					&nbsp;&nbsp;<input name="purchaseHeaderModel.typeCost" id="typecost_2" type="checkbox" value="2"> Cost MA </td>
					<td>Project ID<input name="purchaseHeaderModel.xxxx"  type="text"
						style="width: 160px;" disabled="disabled"></td>
					<td class="header">ชื่อย่อโครงการ </td>
					<td><input name="purchaseHeaderModel.xxxx"  type="text" style="width: 120px;" disabled="disabled"></td>
					<td></td>

				</tr>


				<tr>
					<td class="header">Marketing Rep. </td>
					<td style="text-align: left;" colspan="3"><input name="purchaseHeaderModel.xxxx"  type="text" style="width: 373px;"></td>
					<td class="header">แผนก </td>
					<td><select style="width: 130px;">
							<option>--- Selected ---
					</select></td>
					<td></td>


				</tr>

				<tr>
					<td class="header"></td>
					<td class="header" style="text-align: left;" colspan="3"><input name="purchaseHeaderModel.xxxx"  type="checkbox" name="checkbox"
						value="checkbox"> Other : <input name="purchaseHeaderModel.xxxx"  type="text" style="width: 304px;"></td>
					<td class="header">Discount Rate </td>
					<td><input name="purchaseHeaderModel.xxxx"  type="text" style="width: 120px;"></td>
					<td></td>

				</tr>

				<tr>
					<td class="header" colspan="4" style="text-align: left; border-bottom: 0px #bbb solid; width: auto;"><u>รายละเอียดสินค้า
							/ Product</u></td>
					<td colspan="3"></td>
				</tr>
				<tr>
					<td class="header">MT </td>
					<td><input name="purchaseHeaderModel.xxxx"  type="text" style="width: 120px;"></td>
					<td class="header">MDL </td>
					<td><input name="purchaseHeaderModel.xxxx"  type="text" style="width: 120px;"></td>
					<td class="header">Product Type </td>
					<td><select style="width: 130px;">
							<option>--- Selected ---
					</select></td>
					<td></td>
				</tr>

				<tr>
					<td class="header" colspan="3" style="text-align: left; border-bottom: 0px #bbb solid; width: auto;"><u>Description</u></td>
					<td colspan="4"></td>
				</tr>

				<tr>
					<td></td>
					<td colspan="6"><textarea rows="5" cols="300" style="width: 500px;"></textarea></td>
				</tr>
				<tr>
					<td></td>
					<td colspan="6">
						<table class="from" cellpadding="0" cellspacing="0" border="0" style="width: auto;">
							<tr>
<!-- 								<td class="header">Cost No. </td> -->
								<td><input name="purchaseHeaderModel.xxxx"  type="text" style="width: 90px;"></td>
								<td class="header">Model Qty </td>
								<td><input name="purchaseHeaderModel.xxxx"  type="text" style="width: 90px;"></td>
								<td class="header">Unit Price </td>
								<td><input name="purchaseHeaderModel.xxxx"  type="text" style="width: 90px;"></td>
								<td class="header">Amount </td>
								<td><input name="purchaseHeaderModel.xxxx"  type="text" style="width: 90px;"></td>
								<td class="header">Total </td>
								<td><input name="purchaseHeaderModel.xxxx"  type="text" style="width: 90px;" disabled="disabled"></td>
							</tr>
						</table>
					</td>
				</tr>

			</table>

			<div style="width: 100%; text-align: center; padding-top: 10px;">
				<table class="from" cellpadding="0" cellspacing="0" border="0" style="width: auto;">
					<td><a href="#" class="button"> บันทึก / แก้ไข </a></td>
				</table>
			</div>


			<div style="width: 100%;">
				<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
					<thead>
						<tr>
							<th></th>
							<th>ลำดับที่</th>
							<th>ML.</th>
							<th>MDL.</th>
							<th>Description.</th>
							<th>Cost No.</th>
							<th>Model.</th>
							<th>Qty.</th>
							<th>Unit price amount.</th>
							<th>Total.</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td><div style="text-align: center;">
									<input name="purchaseHeaderModel.xxxx"  type="checkbox" name="checkbox2" value="checkbox" />
								</div></td>
							<td><div style="text-align: center;">1</div></td>
							<td>PM-002-57</td>
							<td><div style="text-align: center;">PS/PM</div></td>
							<td><div style="text-align: center;">CGD-0056-57</div></td>
							<td>CGD-000009</td>
							<td>CGD</td>
							<td><div align="right">10</div></td>
							<td><div align="right">5,000</div></td>
							<td><div align="right">50,000</div></td>
						</tr>
						<tr>
							<td><div style="text-align: center;">
									<input name="purchaseHeaderModel.xxxx"  type="checkbox" name="checkbox2" value="checkbox" />
								</div></td>
							<td><div style="text-align: center;">2</div></td>
							<td>PM-002-57</td>
							<td><div style="text-align: center;">PS/PM</div></td>
							<td><div style="text-align: center;">CGD-0056-57</div></td>
							<td>CGD-000009</td>
							<td>CGD</td>
							<td><div align="right">10</div></td>
							<td><div align="right">5,000</div></td>
							<td><div align="right">50,000</div></td>
						</tr>
					</tbody>
				</table>
			</div>


			<table class="from" cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
				<tr>
					<td colspan="7" class="header2" style="border-bottom: 1px #bbb solid;" align="right">

						<table class="from" cellpadding="0" cellspacing="0" border="0" style="width: auto;">
							<tr>
								<td class="header">Total </td>
								<td><input name="purchaseHeaderModel.xxxx"  type="text" style="width: 120px;" disabled="disabled"></td>
							</tr>
							<tr>
								<td class="header">Vat : <input name="purchaseHeaderModel.xxxx"  type="text" style="width: 40px;"> %
								</td>
								<td><input name="purchaseHeaderModel.xxxx"  type="text" style="width: 120px;" disabled="disabled"></td>
							</tr>
							<tr>
								<td class="header">Sub Total </td>
								<td><input name="purchaseHeaderModel.xxxx"  type="text" style="width: 120px;" disabled="disabled"></td>
							</tr>
							<tr>
								<td colspan="2"><a href="#" class="button"> บันทึก </a> <a href="#" class="button"> ลบรายการ </a>
									<a href="../pr/home" class="button"> ย้อนกลับ </a></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</div>
	</div>
</div>

</form>